#ifndef __I2C_REG_H
#define __I2C_REG_H
#include "Wire.h"
#include "Arduino.h"

void  writeReg(uint8_t add,uint8_t reg);
void  writeReg(uint8_t add,uint8_t reg,uint8_t length,uint8_t *buf);
void  writeRegNoLength(uint8_t add,uint8_t reg,uint8_t length,uint8_t *buf);
uint8_t readReg8(uint8_t add,uint8_t reg);
uint16_t readReg16(uint8_t add,uint8_t reg);
uint8_t readRegBuf(uint8_t add,uint8_t reg,uint8_t length,uint8_t *buf);

#endif


